package com.alldios.deposit.api.bid;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.alldios.deposit.anno.Desc;
import com.alldios.deposit.api.HfReq;


public class RepaymentReq extends HfReq {

    @Desc("标的 ID")
    public String ProId;


    @Desc("订单号")
    public String OrdId;


    @Desc("订单日期")
    public String OrdDate;


    @Desc("出账客户号")
    public String OutCustId;


    @Desc("订单号")
    public String SubOrdId;


    @Desc("订单日期")
    public String SubOrdDate;

    @Desc("出账子账户")
    public String OutAcctId;


    @Desc("还款本金")
    public String PrincipalAmt;


    @Desc("还款利息")
    public String InterestAmt;


    @Desc("扣款手续费")
    public String Fee;


    @Desc("入账客户号")
    public String InCustId;


    @Desc("入账子账户")
    public String InAcctId;

    @Desc("分账账户串")
    public String DivDetails;


    @Desc("分账商户号")
    public String DivCustId;


    @Desc("分账账户号")
    public String DivAcctId;


    @Desc("分账金额")
    public String DivAmt;


    @Desc("手续费收取对象标志 I/O")
    public String FeeObjFlag;


    @Desc("垫资/代偿对象")
    public String DzObject;

    public void setDetails() {
        JSONArray array = new JSONArray();
        JSONObject obj = new JSONObject();
        obj.put("DivCustId", DivCustId);
        obj.put("DivAcctId", DivAcctId);
        obj.put("DivAmt", DivAmt);
        obj.put("FeeObjFlag", FeeObjFlag);
        array.add(obj);
        DivDetails = array.toJSONString();
    }

    @Override
    public String[] signList() {
        return new String[]{
                "Version", "CmdId", "MerCustId", "ProId", "OrdId", "OrdDate", "OutCustId", "SubOrdId", "SubOrdDate", "OutAcctId", "PrincipalAmt", "InterestAmt", "Fee", "InCustId", "InAcctId", "DivDetails", "DzObject", "BgRetUrl"
        };
    }
}
